package com.educate.serviceedu.client;

import com.educate.commonutils.ResultOne;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;


import java.util.List;

@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class)//调用得服务名称
@Component
public interface VodClient {
    //根据视频id删除阿里云视频
    @DeleteMapping("/eduvod/video/removeAllVideo/{id}")
    ResultOne removeAllVideo(@PathVariable String id);
    //删除多个视频的方法
    @DeleteMapping("/eduvod/video/delete-Bath")
    ResultOne deleteBath(@RequestParam("videoList") List<String> videoList);



}
